Use the -win parameter. If the window that comes up is too small, use the -width and -height parameters to manually specify a multiple of 320x200 as the resolution. Most of the editors that are supported nowadays should just have a checkbox for "Windowed mode", though.