Can anybody explain me a possible use for the identifier $wid?

I already know that it returns the window's id, but what's the use of that? Is it possible to return the name of the window using this id?

Your help is appreciated