Add helper function for drag and drop with the new Viewer.