WindowToken is used as a security mechanism in android system, wherein it is used to verify the application interacting with the Inputmethod is the application which is currently receiving the input. so exposing it will compromise security. Hence no mechanism is provided by android framework to get the Windowtoken of other applications.
You can look at my other answer for similar question here