Creates a new instance of Gobject, or optionally of type gtype. The properties parameter should contain an associative array of Gobject properties to set for the new instance.