Refactored WindowSnapshot to guarantee correct usage.