Checking if a file is dragged on top of the window

Godot Version

4.2.1

Question

I have a game that uses files to get its data from.
Is there a way to check if a file is dragged on top of the the window and its directory?

If you mean external files dropped into a window you can use the signal Window.files_dropped to know when they are dropped. I don’t think there’s a way to know if external files are being dragged on top of the window.

If what you mean is to implement drag and drop functionality inside of Godot you can check this demo godot-demo-projects/gui/drag_and_drop at master · godotengine/godot-demo-projects · GitHub that shows you what you need to do to get it working.