A button action that is a toggle for opening a popup Layer and on re-clicking the same button, closing the opened Layer.

Acorn