Is there a way to define different working folder for different workspace?

Workspace is a good concept for me to keep my different working environment, but I tried many ways to no avail to define a specific working fodler for different workspace. Anyone knows how to make it? Thanks.

JupyterLab Desktop does that by setting JUPYTERLAB_WORKSPACES_DIR to a hidden folder .jupyter in the place where you are launching it from.