Looking for this answer on the internet, I didn’t find a compiled solution for this issue. So I decided to make a simple tutorial how to build an app that act as a drag destination of a text file.

How does it works?

MacOS has a sofisticated drag-and-drop operation’s to use in your application or between applications. Using this capabilities your application could act as a Dragging Source, a Drag Destination or both.