Auto switch to edit mode when dragging file to note which is in preview mode

Use case or problem

When editing I often switch to Preview mode to see my images then I go to add a new image but when dragging the image in nothing happens because I am in Preview mode. I have to drop the file, switch to edit mode, then go drag the file again.

Proposed solution

Since nothing happens when dropping a file in Preview mode anyway it would be more useful if Obsidian automatically switched the note to Edit mode when dragging the file on top.