Is there a way to run code non stop?

Am I misunderstanding something then? It might take it off of your viewport but you can add it back without having to recreate the widget correct?