The savedState directory might also contain a “snapshot” for the app window: this is actually a screenshot of the window as it last existed, which is sometimes used after restart to “fake” immediate restoration while the real work takes place. These screenshots live in the window_#.data files, but in a rather arcane form: they are raw CGImage data that is zlib-compressed and then AES-128-CBC-encrypted, using a key (…) At this point, you might be asking yourself “why the $%^& did you implement that?” To which the answer is because it was there. Some people play video games. (shrug emoticon)
https://martianbase.net/system/media_attachments/files/115/805/303/414/263/497/original/b82fe73cdb79252d.jpeg