Question: how to have multiple projects in same window in intellij?
Answer: File > New > Module from Existing Sources…
Select the project e.g. /local/projects/projectX. If available select the build. gradle or another file that indicates the project model.
Finish the wizard.