I do these in bed, a rope-loaded kettlebell:

(with the weight hanging beside the bed, with me lying supine in bed -- holding the handle only)
However, the risk of injuring yourself or damaging furniture is 100x higher in bed compared to at a more appropriate location. There are dozens of ways to injure yourself due to unforeseen "death traps" as I call them, like getting pulled off the bed due to Newton's "equal and opposite" force-pair law for example.
I also use a "screw hook" drilled into my window sill connected to a $6 "50-pound (20kg) exercise band" from Amazon which I also connect to the handle via a carabiner so I can do lateral raises while watching Veritasium videos on my wall mounted tv that floats above the foot of my bed.