Specify an object property path to display it as a widget.
For example, bpy.context.object.location displays and edits the object’s location.
Advanced property operations
Use Property Editor when you need indexing or more complex property operations.