Refactor AutoscrollDropTargetListener to avoid deadlock with Swing code