When dragging a file, the destination must be the browser, for supported files, create a new document for is, in the browser folder, if need convertion, perform convert
For files not supported, just reject it

A piece of text

The destination must be the editor, try to convert it, then put into editor
for link, create a link automatically
for image, create image attachment, download the image automatically if needed