This is probably not a coincidence. I can pretty much guarantee you a developer said something to a designer like "hey, most of this is outside the window, is that fine?" and the designer said back "well, I think so, but let's check what Windows did," and then they okayed the decision at least in part because Windows did it.
Which is all the more bizarre, because historically it was usually Windows which copied MacOS ;)
That the roles got reversed became painfully clear when macOS copied the Windows Vista style popup mess for access permissions.