Drag and Drop into game window and get files path

It’s really hard to find information on this, because the search gives me only results for GUI.

I’m working on a non game project and I want people to be able load pictures into the programm. Is it possible to do something like drag and drop into the “game” window and get the path to that file that way? Is something like that possible?

Not sure about unity, but if one can read command line arguments within unity then it is definitely possible.
Normally the location of the file would be appended into the arguments list so one may have that info, but as mentioned I have no idea if/how it can be done in unity as I have never tried it myself