It can be different for every app. Some apps open separate windows automatically, like many Microsoft Suite applications. Others, like Safari or Chrome, require you to right-click or click and drag to move different tabs into separate windows.