Fix everything wrong with draggable files

From #5683.