The UIApplicationDelegate usually has a reference to the “main window”:
[[[UIApplication sharedApplication] delegate] window];
Furthermore, UIApplication has an array of windows [[UIApplication sharedApplication] windows].
See the UIApplication Class Reference.