How to add "Overlay" buttons in custom panel?

Thanks, this clarifies the usage of overlays a lot! Good to know that Python tool tip data paths may need to be modified.