Found an easy solution, you have to drag the tab to the + sign used to open a new tab. It's not as intuitive as in Chrome, but it works.