@Override
	public void toFront() {
		JFrame frame = winMgr.getRootFrame();
		if (frame.getExtendedState() == Frame.ICONIFIED) {
			frame.setExtendedState(Frame.NORMAL);
		}
		frame.toFront();
	}
A partial implementation of {@link Tool} that serves as a place to share common functionality
Ghidra/Framework/Docking/src/main/java/docking/AbstractDockingTool.java