setContentSize

open override fun setContentSize(width: Double, height: Double, animate: Boolean = definedExternally)(source)

Resizes the window's client area (e.g. the web page) to width and height.

On Wayland (Linux), may not work as some window managers restrict programmatic window resizing.