setSize

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

Resizes the window to width and height. If width or height are below any set minimum size constraints the window will snap to its minimum size.

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