Getting the snap palette to pop up under the cursor

_ToggleOsnapPanelUnderCursor is the command for the Osnaps panel.

For tool palettes, use the example here. This can be used with any button you choose.