Emacs will respond to a file's being dropped onto its dock icon (and the response can be whatever Lisp code you want) but of course there has to be an Emacs icon in the Dock, which means the Emacs cannot be running "inside" a terminal.
If you enable server-mode you can run gui emacs to get the icon in the doc and pop up a gui window when you drop something on it, while also connecting in a terminal.
Comments
Emacs will respond to a file's being dropped onto its dock icon (and the response can be whatever Lisp code you want) but of course there has to be an Emacs icon in the Dock, which means the Emacs cannot be running "inside" a terminal.
If you enable server-mode you can run gui emacs to get the icon in the doc and pop up a gui window when you drop something on it, while also connecting in a terminal.