Set a callback function for swapping the front/back buffers.
This applies to the current active WindowProxy.
Callback function to be called.