I'm in the middle of [X]. = I am [X]-ing right now/at this moment.
I'm in the middle of cooking dinner. = I am cooking dinner right now/at this moment.
[X] has a start, middle, and end.
I just started cooking dinner.
I'm in the middle of cooking dinner.
I just finished cooking dinner.