I find that Flatpaks[1] work really well for getting the latest version of GUI-only apps. For CLI tools and libraries I haven't found a great solution but I make do with an Arch Linux distrobox[2] container.
[1]: https://flathub.org/setup/Debian [2]: https://packages.debian.org/bookworm/distrobox