Editor - run script every frame

Is there a way to have script running every frame on editor and checking some stuff?

I’ve tried Blutility with SetTimer, it works only partially, because gets blocked easily by any modal windows and new level creations.

Maybe I need to blutility script to loop forever on some seperate thread? Any hints on how to implement this the best way?