FPackagePath::GetCustomExtension

Return the custom string if this PackagePath is using HeaderExtension=[EPackageExtension::Custom](API\Runtime\CoreUObject\Misc\EPackageExtension), otherwise return an empty string