is there a way for script added object to stay in the editor?

e.g. use a script to instantiate monsters(automatically calculating positions etc.) and then use the editor scene view to see and modify it if necessary.

how can this be done?

Make a ‘wizard’ or have it ‘run in editor’