"Hi, mind if I sit on?"
If the answer is no, then either pass them or sit up and allow a gap to form. If the answer is yes, then offer to rotate and share the work. But don't just sit back there without saying anything. It's just weird, rude, and occasionally dangerous.