private static void ensureSize(Dimension popupDimension) {
		Dimension screenDimension = WindowUtilities.getVisibleScreenBounds().getBounds().getSize();

		if (screenDimension.width < popupDimension.width) {
			popupDimension.width = screenDimension.width / 2;
		}

		if (screenDimension.height < popupDimension.height) {
			popupDimension.height = screenDimension.height / 2;
		}
	}
Shows the popup window.  This will hide any existing popup windows, adjusts the new popup
to avoid covering the keep visible area and then shows the popup.

@param popupSource the popup source that contains info about the source of the popup, such
as the component, a mouse event and any area to keep visible.
Ghidra/Framework/Docking/src/main/java/docking/widgets/PopupWindow.java