The Window.resizeBy() method resizes the current window by a specified amount.
Window.resizeBy()
MDN Reference