Custom menu to eg MaxScript Window and others?

Is it possible to add a custom menu to a interface window like MaxScript Editor window, Material Editor window and such?