Refactor Object#window method and add App#owner method.