resizeTo

fun resizeTo(width: Int, height: Int)(source)

The Window.resizeTo() method dynamically resizes the window.

MDN Reference