[Window]: change resize() to setSize()