Specify an object from a list with all selectable objects

How to create a property that allows you to specify an object from a list with all selectable objects?

Like what can be seen in this image:


the thing your are looking for is called prop_search
For more see here:

Thank you @Linusy. Solved