Comment 38 for bug 876017

One way to get this functionality (not like in Q, but with similar behavior), is enabling the plugin "Scale Addons" in CCSM and enable the option to close windows on middle-click.