That's pretty cool. I've never needed to do that because Paint remembers the last canvas size set manually.
If I were designing an OS shell I would simply give the user the ability to easily make temporary text or image buffers and copy and paste content to/from them, rather than using a Notepad or a Paint.