Preparing the Window Surface