Tool creation - Window

Is there a way I can create a window which I later add functionality to?