Fixed some issues in Drag and Drop auto-handling

Dragging a parent onto its children, even though they’re nested, is now
automatically prevented.