setSize

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.