I can't seem to figure out which object in the visual tree actually holds onto the context menu that is presented when you right click on a document window tab. Could you point me in the right direction so that I can override it and add some of my own functionality?