Glue the switch into the dock. Problem solved
........... lol
And for the people that thing the dock does something. It does nothing. Nintendo will not make a pro dock or anything like that. The dock is simply a TV out cable.
The reason the switch runs better dock, is due to the fact that its giving power output to the switch.Which means it can run at full clock without worrying about draining the battery.
If you plug up a charge cable to the switch in handheld mode, it would run at full processor clock.