Function takes `target` representing content (page) container and returns `nsIDOMWindow`
for that content. If `target` has no content associated with it `null` is returned.