Notepad.exe & Windows 11 are already bad enough.
I just checked this again to write no nonsense:
When you open a text file from an USB stick with notepad.exe you can nonetheless "disconnect" the stick. Win 11 (not 10!) ignores that you are editing a file from it - on one hand.
But on the other hand, when you return to the file still open in notepad.exe it tells you it can't find the path and presents you with an *empty* editor.
Except you changed the text before, then it's kept.