Off with it's head! (Pager)

First part of #6248
Maybe a comment about what this block does? Find the max_zindex of all dockables?