Script Gui Help!

Hello, I was wondering how you would make a script that has a visual interface such as the built in terrain script? Is it in the script or is there a GUI editor or something? Here is the picture

420309--14590--$terraingui.PNG

Would this be for the editor (e.g. a custom inspector or window), or in-game?

thanks!