Curious about multi-root workspaces

The latest version of cursor features multi-root workspaces. Could someone explain in detail how such a workspace is set up and how does it work?

The same here: