public static void openFunctionWindow(FunctionRecord functionRecord, FidService service,
			FidQueryService fidQueryService) {
		FidFunctionDebugPanel panel =
			new FidFunctionDebugPanel(service, fidQueryService, functionRecord);
		JScrollPane scrollPane = new JScrollPane(panel);

		String title = String.format("0x%x - %s", functionRecord.getID(), functionRecord.getName());
		JFrame frame = new JFrame(title);
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.setContentPane(scrollPane);
		frame.pack();
		frame.setVisible(true);
		fidQueryService.addCloseListener(listener -> frame.dispose());
	}
Opens a function record debug panel in a new window.
@param functionRecord the function record to debug
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/debug/FidDebugUtils.java