My apartment and several in the area, have a concierge, and they’ll act as a “porch” and even deliver it to your door later in the day
Some apartments have mail rooms, some with automated entry based on if you have a package or not
It’s largely a solved problem
I also think having a general unlocked mail or package slot is problematic these days, as bad actors could use that to insert all kinds of nefarious and damaging items into your home.