Ask dog to sit, gently. If they don't, patience, persistence. Touch gently to sit. Get present to calm them. Try again. Scratching is sensitivity. Whining is un peace. Yawning is good.
Put on lead if too hard.
Don't force to sit. Get present and try again.
Next step when peaceful is to drop lead and walk away and leave them. Should stay lying down. If they get up and move, repeat until they stay and relax.
Leave them and go to another room. Come back and release them.