How to use two instances of windows in the same PC?

Hi,

I saw that there is a way to control a user account with TeamViewer while the other account can be used normally on the same PC. Like one user remotely running the Office through TeamViewer while another user plays a game on the same PC. How can it be done?

Thanks