private void createActions() {
		DockingAction showProviderAction = new DockingAction(SHOW_PROVIDER_ACTION_NAME, getName()) {
			@Override
			public void actionPerformed(ActionContext context) {
				showProvider();
			}
		};
		Icon icon = new GIcon("icon.sample.action.show.graph");
		showProviderAction.setToolBarData(new ToolBarData(icon, "View"));
		showProviderAction.setHelpLocation(DEFAULT_HELP);
		tool.addAction(showProviderAction);
	}
Sample plugin to demonstrate a plugin with a dockable GUI graph component
Ghidra/Extensions/sample/src/main/java/ghidra/examples/graph/SampleGraphPlugin.java