ToolSetupUtil::GetDefaultWorldReferenceFrame

Use the current selection, if any, or otherwise the camera position to find a relevant reference frame for creating new objects.