IIRC you gotta hold the file over the program's taskbar icon for bit then it changes to that window as active and there you can drop. Try with e.g. Your browser on Google drive for uplaoding
As far as I can tell, no programs support that. Every one I've tried pins the document instead, so I'm wondering if they're mistaken. It does work on KDE.