Gtk.Window.prototype.get_default_size

function get_default_size():void {
    // Gjs wrapper for gtk_window_get_default_size()
}

Gets the default size of the window. A value of -1 for the width or height indicates that a default size has not been explicitly set for that dimension, so the "natural" size of the window will be used.