You could simply add a Thunderbolt or USB 3 dock....
Using an external keyboard and mouse solves the ergonomic problems of using a laptop for long periods. (Sad to say, I see very few people actually doing this.)
Of course, you don't get the benefits of running a faster, hotter processor, expandability etc, though Apple no longer offers a reasonably priced tower system anyway....