If you are building a XULrunner-based app and want to add a preferences dialog based on the prefwindow XUL tag, I strongly recommend you read the note I just added to MDC about that...