The method above is exactly what strong players do over the board. These games come from the 2024 and 2026 Chess Olympiads.
The whole technique in eight moves. In Bahati Mbebe – Gemota (Examples 5 and 7, Exercise 2), White's rook on f3 kept Black's king on the g- and h-files while White's king walked from c6 to e4. Then 54. Rf5 and 55. Rf4 shrank the box to six squares, 56. Kf3! took the opposition and left Black only Kh2, 57. Rh4+ Kg1 pushed the king to the edge, 58. Rh3 was the waiting move, and 59. Rh1# finished. From 56. Kf3 onwards every White move was among the tablebase's fastest.
Fence, rook safety and stalemate. In Menana Asangono – Pica (Examples 2 and 6, Exercise 5), 58... Rg1 locked White's king on the h-file at once. When 61. Kh2 attacked the rook, Black ran to the far side with 61... Rg7 (61... Rg3, protected by the king, was a move faster). After 63... Kf3 64. Kh1, Black found 64... Kf2 and avoided the stalemate 64... Rg2??; White resigned.
Far side, then the knight's move. In Banda – Matnadze Bujiashvili (Example 4, Exercise 7), 92... Rb7+ drove White's king to the back rank, 93... Rh7 saved the attacked rook by sliding it away, and 94... Ke6, a knight's move from White's king, left no defence; White resigned.
Shrink the box when you move the rook. In Sidhanth Bhandari – Fofana (Exercise 6), Black's king attacked the rook on h6. White's 74. Ra6 kept the fence, but 74. Re6 would have kept it and also added a second wall, mating two moves sooner. When your rook has to move anyway, look for the square that makes the box smallest.