Instantiating objects from EditorWindow

I’m trying to create a tool that lets me define a set of parameters to quickly generate some set of objects that I can then use the scene editor.

I tried using the typical Instantiate but that didn’t work.

So, how would I go about using an EditorWindow to instantiate or otherwise create objects for the scene editor?

Try this :

GameObject newGameObject= new GameObject(“GameObjectName”);

http://docs.unity3d.com/Documentation/ScriptReference/GameObject.GameObject.html