In ArcGIS.Desktop.Mapping within the ArcGIS Pro 3.0.3 SDK the following method has been removed:
var x = LayerFactory.Instance.CreateRasterLayer(uri, mapView.Map, 0, theShortName)
var x = LayerFactory.Instance.CreateFeatureLayer(uri, mapView.Map, 0, theShortName)
what are there replacement?