you would need the old Thinkpad with hot swappable batteries, I would say it's a shame they stopping doing them but I don't actually think many people used them in practice.
Also now you can do pretty much that with a separate powerbank charging your laptop via usb C. it's more cumbersome but with a more universal interface and more versatile.