Handle the window state as recommended by the Gnome HowDoI guide by using the wrapper class WindowState with GObject properties and bindings. Additionally use separate settings for width and height instead of an array.