Problem statement: use a Samsung Galaxy Tab A7 with OneUI 3.1 as a seccond screen on Windows.
According to Samsung at time of writing, a "Second Screen" button comes as part of the OneUI 3.1 update (article here). However, for me (as for many people), this doesn't work on a Galaxy Tab A7, at least with OneUI 3.1.
The solution that works for me is a free application called spacedesk from DatronicSoft in Germany.
Steps to install on tablet: