How can I tell if I'm in standalone or new editor window

is there a way I can print out the WorldType?