setContentSize

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.