working-ish window drawing test code