Transfer ownership of drag-and-drop layout elements in sip

Fix #11207