Helper method on window to clean up required code for basic drawing.