focus

abstract fun focus(options: FocusOptions = definedExternally)(source)

On macOS, makes the application the active app. On Windows, focuses on the application's first window. On Linux, either focuses on the first visible window (X11) or requests focus but may instead show a notification or flash the app icon (Wayland).

You should seek to use the steal option as sparingly as possible.