Hi, @August. You're welcome.
Yes, the macro minimizes that window. This was a design choice I made. But you could easily change it if you want.
That's how the Notes app works (even if the main photo window visible, minimized, or hidden). Again this was a design choice I made, but you could easily change that behavior by modifying the macro to first close the Notes app if it is open.
Easy to do; no AppleScript required.
yes, but...
You might want to check out another macro I've shared: Float Specified Apple Notes