Updated for new API changes on ui.Window.Open().