Rename window.SetRect() to setRect to not imply it's externally accessible.