[3.0beta] how do i use window proc?

there used to be a setwindowproc function in the old 2.x where i could just add some random stuff so that it could do some logic during the message loop

i can’t seem to find it here with the new 3.0

any ideas?