How long was the flight?
Personally I enjoy the solitude of being left alone on the flight deck every now and again, if there is an emergency I'll cycle the seatbelt signs or make a PA for my colleague to return to the flight deck. I also enjoy taking time to stretch my legs and walk around the cabin, say hello to the crew etc.
However, on an easyJet flight with the forward galley in full view of the passengers, I cant deny that the optics of a pilot spending an extended period in the galley are such that passengers would feel uncomfortable after a few minutes. Personally I wouldn't have stood there for so long, but given a different galley config/privacy curtain it would be a different story.