I hope the provided Stackblitz solution works for your use case. The fix involves adding the cdkDragHandle directive to the <h2> element, enabling drag functionality specifically on the header.
cdkDragHandle
<h2>