Trivial refactoring: move factory method of `WindowImpl`
4 files changed