/Engine/Source/Editor/UnrealEd/Public/Toolkits/AssetEditorToolkit.h
Returns true if this toolkit is used to edit assets (even if it's not necessarily editing one right now.)
virtual bool IsAssetEditor() const