Yes, flatpak does do that; its base images only have the basics, leaving apps to bring the rest of their own libraries/dependencies.

that's not everything which was the original comment, the Freedesktop runtime is generally enough for 90% of applications.