Added window methods to request and to check focus on Windows

This is the windows part for a fix for #518