added on drag end event handler for the case where the window is the drop target