Implement viewFor(window) support.
Merge pull request #1301 from Gozala/bug/window-getView@695143

Bug 695143 - Implement viewFor(window) support. r=@ZER0