Implemented a crude version of dragging files