Who decided closing a window s... Note

Who decided closing a window should sometimes close the whole app?

Why is it that closing a single window sometimes shuts down the entire application instead of just that window? I'd like to understand who made this design decision and whether there's a setting to change this behavior so closing one window doesn't kill the whole app.