Specify type in UI builder > ObjectField to be Monobehaviour + MyInterface

I have an ObjectField in the UI Builder (UI Toolkit) and want to specify the type.

The type should be a MonoBehaviour that also implements an interface that I defined (MyInterface).

Entering UnityEngine.MonoBehaviour, UnityEngine.CoreModule under Type will type it to Monobehaviour correctly but I could not figure out how to include MyInterface as well and get it to work.

If I enter just the interface I get the error message: Type attribute type must derive from UnityEngine.Object. So that is also not an option.

Could you not make the interface the type instead of MonoBehaviour?
If this interface must be a MonoBehaviour then maybe it would be better to use an abstract class that inherits from MonoBehaviour instead of an interface?
If you are using the latest version of Unity 2023.2+ then you can use custom property drawer which can monitor the ObjectField value and reject it if it does not have the interface