I want my application to open a new window and then draw an NSRect. However, it draws in the first window of the application, not the newly opened one. How do I change this?