gui: NewGui now also returns a pointer to its window.