Resizes the window to width and height.
width
height
Future<void> setSize(Size size, {bool animate = false}) async { _target?.setSize(size.toNative(), animate); }