Even a simple right click on the layer ID box in Properties with "Assign next free ID" would be great as when we copy layers from one project to another it will keep the old IID - finding the next free ID involves add a single new layer, finding that ID, removing that layer and using that ID for the pasted one.
The routine must be inside Pro to call when you add a new layer