How can I add user properties to be displayed in the properties-dialog box?

When you add user properties to CGXProperties, they will be displayed in this grid at the bottom right corner.

The CGXProperties class reference provides a sample how to do this.