Move checkwindow() to a platform-independent portion of the code, since it uses pure wxWidgets API.
Authored by: david_costanzo 2016-05-22
Parent: [r4089]
Child: [r4091]