Added a drag & drop mouseArea on the GUI. The function is still not working properly.