For creating a starter file, just publish a file containing a WINDOW definition - see manual.
A common mistake is publishing the wrong file. The WINDOW definition must be in the WDL file, not in the C file.
WED knows all files belonging to your level, so it does not matter how you publish - all C and WDL files are included. But in SED you only get a .wdf file when you publish it.