materialed: Add material stuff into a main window