function WindowHasInputFocus()

Returns true if the window has input focus, otherwise it returns false.