public static void focus(@Nullable Scene scene) {
		if (scene == null)
			return;

		Window window = scene.getWindow();
		if (window.isFocused()) return;

		if (window instanceof Stage stage) {
			// If minified, unminify it.
			stage.setIconified(false);
			stage.show();

			// The method 'stage.toFront()' does not work as you'd expect so this hack is how we
			// force the window to the front.
			stage.setAlwaysOnTop(true);
			stage.setAlwaysOnTop(false);
		}
		window.requestFocus();
	}
@param scene
		Scene to bring to front/focus.
recaf-ui/src/main/java/software/coley/recaf/util/SceneUtils.java