ENH: added Window.callOnFlip() and a demo to show how to use it