Allow extending creation of custom tabs.

I wanted to hook tab creation and needed this change.