Let's say I have a pointer property:
collection: bpy.props.PointerProperty(type=bpy.types.Collection, name="Collection")
Then I output this property using UILayout.prop():
row.prop(my_object, "collection")
So that I can select a collection to assign it to this pointer property:
Is there a way to filter out some collections, for example, remove a collection that contains the active object?

