refactor GridiaWindow.Resize()