Got the red rectangle to draw in the window's view. Took some time to figure out that window had to be initialized.