x,y is the top left corner of the window