If you close the application, the attached note is no longer hidden, and it is even impossible to hide it with the dedicated command. The only way for it to hide is to detach it from the app.