In google sheets, when we click on Format->Conditional Formatting, a sidebar opens. Now click on Format->Alternating colors, another sidebar opens and it actually is on top of the earlier sidebar. when we close the "Alternating colors" sidebar, the "Conditional format rules" sidebar is still there.
From apps script, when we open a sidebar using SpreadsheetApp.getUi().showSidebar() and then try to open a second sidebar, the first sidebar is closed.
How can I replicate the behavior as seen in google sheets? i.e when I create 2 sidebar's both should exist unless I explicitly close it.