Property panel customization

For customizing the Properties panel we have can specify Groups containing Entries. These groups have modelProperty associated with them, which gets stored in the element tag as an attribute.

Is there any way to customize it such that they get stored as en “extensionElement” tags within the element ?

Could you provide a little bit more context using screen mock ups, source code snippets, etc?