Implements inspector group view collapsing when its header is clicked.