How to enable Drag and Drop file into an InputText?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ramshell

I’m making a editor plugin and I’d like to implement an input text that allows me to import a scene. For the plugin, it would be easier to drag and drop a file to the area of the input text and complete it with the file’s path. Is there any way to implement this? I couldn’t find anything in terms of the editor’s interface. I think it would be enough with getting the file or the object being dragged by the mouse or something.

Thanks in advance.