The ArcPy Camera object, utilized by both MapView and MapFrame objects, is currently broken for usage within a MapView. This flaw is acknowledged in the documentation for Camera.setExtent(): "Sets the Extent for a map frame in a layout." A camera object obtained from MapView.defaultCamera can have setExtent() called on it, but the Extent of the MapView will not change.
My suggestion is that Camera.setExtent() gets implemented for all instances of Camera, including Camera objects used by MapView objects. This would enable functionality for the Extent of an Active Map to be modified by ArcPy. An active map in a project should have this functionality just like a MapFrame in a Layout does.
I tried to design a script that pans the active map to specific features, but this is currently not possible with the broken implementation of the Camera object. Fixing this implementation will help my workflow in many ways because I will be able to easily pan the map to my selected features with a single function. Currently I have to Select By Attributes and then Zoom To Selection which is tedious when reviewing large numbers of features.
If implemented, a user may be able to do something like:
arcpy.management.SelectLayerByAttribute(layer, "NEW_SELECTION", f"OBJECTID = {oid}")
aprx = arcpy.mp.ArcGISProject("CURRENT")
map_view = aprx.activeMap
map_view.defaultCamera.setExtent(getLayerExtent(...))