Hi @azone ,
Thanks for your interest in NXP MIMXRT series!
First of all, while this is a less than elegant implementation due to your hardware limitations, the RT Series MCUs can support you in doing this.
Also, the GPIO's registers have a SION bit that holds the GPIO outputs along with an input loop, not sure if this feature would be helpful in your usage scenario.

Best regards,
Gavin