Calling node menus in the context of a different editor can lead to errors in many places (e.g. checking on space_data tree_type/ node_tree_sub_type), so to resolve, add a very general poll function to the NodeMenu class. Pull Request: https://projects.blender.org/blender/blender/pulls/147512