How is the mapping of storage done in upgradeable contracts?

A post was split to a new topic: Are the logic contracts state variables initialized and stored in the proxy contract’s context?