Query editor bug with floating editor window

Steps:

Select query1 in the code panel -> query1 code is displayed in the code editor panel
Click on the "open pop-out editor" button -> query1 code appears in the pop-out editor
Select query2 in the code panel -> query2 is displayed in the code editor panel
Make a change in the pop-out editor to the query1 code -> overwrites and replaces query2 code

I would expect that the pop-out editor knows the context of which query it is attached to and an open pop-out for query1 wouldn't overwrite query2
Ideally you could have multiple pop-out editors at the same time