Pretty much everyone I know who has a notebook work on it at home and in the office. Those who have tried to use it with a bigger external display never looked back for obvious reasons. Everyone also loved the setup when notebook screen is used together with external display next to it. People become much more productive and they value that, just as being able to have their set of work and personal files whenever and wherever they need it. Eventually, periods of most productive work are associated with time when notebook is docked to a set of perriferals.
The convenience of managing only one device (or even none if IT department does all the job), portability and flexibility make a lot of people ditch their desktops and solely rely on their notebooks. Computing power seem to play less of a role especially when todays hardware is really fast enough for most of the tasks anyway. Back in 2008 in fact, when Intel released X25-M SSD (I have some being used even today as a scratch disks) it became possible to convert a notebook into a faster machine than a typical desktop PC. The percievable speed jump was huge. And today MacBook Pro 13 comes with up to 2TB of insanely fast SSD (backed up by APFS and T2 chip), quad core CPU and seriously powerful internal GPU (sufficient for every single business person I know, including those involved in RnD, construction and design) and eGPU option in cases when more “omph” is desired.
Apple clearly advertises docking capabilities with the MacBook Pro line, which all started with Apple Thunderbolt Display, continued with 2016 15” model being shown running 2x LG 5K displays and external storage and now - the BlackMagic eGPU.
Taking all things into account, if one has chosen “the path of notebook”, than it only makes sense to focus on its docking capabilities more than on anything else. Once a single cable solution experienced - there is no going back to the old ways. With going “all in” with Thunderbolt 3 in 2016 Apple has futured proofed their MacBook Pro line as much as possible as well as pushed the whole industry into the right direction in the form of USB C connection.
Speaking of iMac I will just note that it is an all-in-one, which only needs to be “docked” to the table and power outlet. I know like 4 people who use all-in-ones at home and many businesses. In most instances they are only connected to a mouse/keyboard, (sometimes) ethernet and a printer - no docking stations / external displays detected. I am sure there are some people other than tech reviewers who use an all-in-one with an external display/docking station, but they belong to minority, just as those who use a MacBook Pro 15 with 2x LG 5K displays.
IMO - a maxed out 2018 MacBook Pro 13 is the best portable computer out there with best docking options. Not one or the other, but both.