Fit to screen script?

I have gotten a GUI Window going and all but on an iPhone app the screen could shift oreintation. So I want to know a fit to screen script for a GUI Window...

All you have to do is this:

var windowRect = Rect(0, 0, Screen.width, Screen.height);

use windowRect for the window's rect