Expose getWindowHash function

This exposes the getWindowHash function and adds appropriate
documentation