Make own editor GUI window accept dragged objects from hierarchy panel

Hi all!

I wonder if there is a way to achieve that a custom editor window accepts gameobjects dragged from the hierarchy panel (without using a EditorGUI.ObjectField control). Just let the user drag a gameobject from hierarchy to a custom panel and make that panel detect the drag operation.

Thanks a lot

Only responding because this thread came up first when I was searching for this. Here is the answer you were looking for so long ago: