drag and drop is enabled by default in the options, but disabled in the
dnd handling in code before the initial property change event was
dispatched. leading to ignored dropped-files events when dispatched too
early.
Fixes#17921
This unifies --drag-and-drop handling to a single place. All platforms
currently only support normal drop (mapped to "replace") and shift click
drop (mapped to "append").