In some apps it’s possible to press a key (such as backtick) to maximize the panel hovered by the mouse cursor. The panel is resized such that it occupies the entire surface of the toplevel container. Pressing again the key restores the UI to the previous state.
What would be an easy way to implement this using GTK containers? I’m interested in the resizing part, not in how it can be triggered.