I don;t know that that is possible. Maybe with a dll. Why not make your script editor on top as well? Also, I have my editor show on desktop, I personally like this way better.
Hmm... I have the script window set as a desktop window rather than an MDI window. This could also solve the problem, unless that window is also a desktop window.