private static void onDragDropped(@Nonnull Region region, @Nonnull DragEvent event, @Nonnull FileDropListener listener) {
		Dragboard db = event.getDragboard();
		boolean success = true;
		if (db.hasFiles()) {
			try {
				List<Path> paths = db.getFiles().stream()
						.map(File::toPath)
						.collect(Collectors.toList());
				listener.onDragDrop(region, event, paths);
			} catch (IOException ex) {
				logger.error("Failed drag-and-drop due to IO", ex);
				success = false;
			} catch (Throwable ex) {
				logger.error("Failed drag-and-drop due to unhanded error", ex);
				success = false;
			}
			event.consume();
		}
		event.setDropCompleted(success);
	}
Pass drag-drop to listener.

@param region
		Region dropped completed on.
@param event
		Drag event.
@param listener
		Listener to call when drop completed.
recaf-ui/src/main/java/software/coley/recaf/ui/dnd/DragAndDrop.java