How to view the UnityGUI in the game view without running it?

Long time ago I crossed a script which allowed the unity to render the GUI in the game view without playing it. I lost that script and don't remember anything about it. does anyone know how to do it? that would be great!:)

http://unity3d.com/support/documentation/ScriptReference/ExecuteInEditMode.html

Note that sometimes changes to variables with this command on gets saved during play mode. I guess it cos the script never stops running.

Something to look out for if you encounter odd behaviour.