title: I need to have a custom dialog in Preferences
body: <p>I want to have a custom dialog (created using layout) in <code>Preferences</code>. What should I do to declare this custom dialog in my preferences? </p>