'Reimplement Qt method
Unpack dropped data and handle it'

def dropEvent(self, event):

    source = event.mimeData()
    if source.hasUrls():
        files = mimedata2url(source)
        files = [f for f in files if encoding.is_text_file(f)]
        files = set((files or []))
        for fname in files:
            self.plugin_load.emit(fname)
    elif source.hasText():
        editor = self.get_current_editor()
        if (editor is not None):
            editor.insert_text(source.text())
    event.acceptProposedAction()
