Using EditorWindow to create GameObjects by Drag&Drop

hi, i want to create something like a palette in an editor window where i can drag game objects into the scene view and place them (the same way i would drag a prefab)

so basically i want to have something like

  1. element in editorwindow that can respond to a drag event
  2. on the drag callback or w/e i instantiate a game object from a prefab and pass it to the drag event
  3. the created drag object can be dropped inside the scene view like any other prefab

1408240--73445--$drag_drop.png

so i assume i’d have to use Unity - Scripting API: DragAndDrop
but which gui element? how do i detect/enable the drag operation? will the scene simply accept a GameObject if i put it in DragAndDrop.objectReferences and behave as expected?

//edit, sorry, this probably belongs into the gui forum

Old thread, but did you ever figure this out? I’m wanting to do exactly the same thing.