static boolean isInActiveWindow( Component c, Window activeWindow ) {
		Window window = SwingUtilities.windowForComponent( c );
		return window == activeWindow ||
			(window != null && window.getType() == Window.Type.POPUP && window.getOwner() == activeWindow);
	}
Returns whether the given component is the permanent focus owner and
is in the active window or in a popup window owned by the active window.
Used to paint focus indicators.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatUIUtils.java