Drag it over over the screen border either horizontally or vertically. It shows an arrow in which direction to join the screen. You can also right click on the screen border (where you normally resize) to split/join them. Note that when you join a screen, both screens have to share roughly the same border size in the direction that you want to merge them.