Following up on this, in 2019.3 you can actually configure the behaviour of Escape. The Focus Editor action is now the one that returns to the editor from a toolwindow, so you can customise the keybinding for that action to something other than Escape. I haven't tried this, so I'd be very interested to know if it works.