Modern implementation of the Preferences window for OS X apps, used in TextMate, GitBox and Mou: