Slightly simpler openWindow sample.