isWindow feature

Some pieces of my code need to ensure that passed object is Window object. Here is simple implementation of isWindow function.