FWIW: The feature used to exist, but it was recently removed.
See https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-mobile-ios/195022/no-ability-to-import-gpx-files-via-ios-share-function-response-from-support
I want this back.