Dialog: Different metadata for widget and extension

Fixes gh-7168