It depends, in many cases it is a real window.
For example in Qt, MFC, C++Builder when you are using a WYSIWYG form designer. They really create a form but with the ability of drag-and-drop controls.
If you want build a tool like them, You should create windows, dialogs, buttons, edits, ... dynamically and attach them to you main form.