Make Mac to work like Windows

BTT currently has the feature to turn the red button into a “quit button.” The problem with that is, if I have multiple windows of an app open, and I click the red button, it quits all of them. What would be great, is a feature like this:
Clicking the red button would quit an app ONLY if it is the last window open. Otherwise the red button would just close the window as usual. So ultimately, you can click the red button anytime you want to close a window and on the last window it would just quit the application. Reducing the clutter of “unquit” apps in your dock. Mac would then work like Windows. Please upvote if you agree!

I have about 5 Macs that I would be willing to install BTT on if it had this feature!

I don’t believe there any apps out there that do this. BTT almost does it and it seems like a simple fix to make BTT quit only the last window. Would love this feature! Mac OS should give you this option anyway.