TitledWindow constructor & prototype