private void openWith(String toolName) {
		int row = table.getSelectedRow();
		Version version = tableModel.getVersionAt(row);
		DomainObject versionedObj = getVersionedObject(this, version.getVersion(), true);
		if (versionedObj != null) {
			try {
				if (toolName != null) {
					tool.getToolServices()
							.launchTool(toolName, List.of(versionedObj.getDomainFile()));
				}
				else {
					tool.getToolServices().launchDefaultTool(List.of(versionedObj.getDomainFile()));
				}
			}
			finally {
				versionedObj.release(this);
			}
		}
	}
Set up the drag and drop stuff.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/VersionHistoryPanel.java