Ok, worked it out thanks to Richard's steer. Here's the code:
System.Windows.Rect rect = new System.Windows.Rect(startpos.X, startpos.Y, width, height);
drawingContext.PushTransform(new Media.RotateTransform(angle, ratio.X, ratio.Y));
drawingContext.DrawRectangle(null, myPen, rect);
drawingContext.Pop();