Change Window to RenderWindow.