Your tablet could double as a second monitor. Here’s how Samsung Second Screen and Apple Sidecar work, and when a dedicated display is worth buying.