multiple bone with the same Custome property

Can multiple bones share the same custome property? Rigify is doing that. How can I?

Another question: How do I make a custome property apear in the “Rig main properties” panel?