Getting dropped file path in Electron

In electron, there’s a feature where you can drag out an element and drop it on your desktop as seen in this example. I’ve searched all over the place for a possible example or GitHub issue I can refrence but the closest I got to a working solution was to simply drag out a filler file which then the system searches for and provides me with a valid path.

I’ve noticed this question which seems to have gone unanswered unfortunately (and the Electron team also seems unintrested in adding onto the startDrag function anytime soon)

As mentioned earlier, I’ve tried saving this temporary dummy file which then gets searched for and the respective path is given. Not very ideal for large systems just for a simple feature addition on the Electron teams end which is kind of disappointing. I’d also like to refrence this GitHub issue which I feel was closed down by the Electron team in an effort to effectively ditch their community.

Anyway, I apologize for the unesscary blabber and any efforts you will put into helping solve this issue would be highly appreciated.

Thanks.