focus

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

On Linux, focuses on the first visible window. On macOS, makes the application the active app. On Windows, focuses on the application's first window.

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