from D4291, this code saves window positions, sizes, and state (maximised/normal) to disk.
keeping the window positions/sizes saved separately from the blend file was a deliberate choice.
Note that functions that read and write to the wmWindowSize structure are in D4291, this code just reads and writes them to disk.
