Custom Inspector ... Filtering of objects in object selection browser?

Is there a way to filter what files or objects show up in the object selection browser?

I created some custom data types (ScriptableObjects) and when opening the browser to select one of them, all object of the custom type show up (which is nice) but the script of the same name as that data type also show up. How can I filter out (in my case) that script which appears because it has the same name (required) as type of the assets also listed.

What’s the line you’re using for ObjectField in your editor code?

I am using EditorGUILayout.PropertyField instead of ObjectField.

Basically, some filtering is happening but since the browser only lists object that match that type but it also list the script which defines that type and named the same way.