Hi
Unfortunately I don't think that it is possible to directly read the state of an input that is not configured as GPIO.

This shows that it is possible to "read back" the value that was written to the DR register (when the GPIO is programmed to be an output) but this is not the pin state. None of the GPIO registers follow the input state when it is not connected (via the IOMUXC).
In most cases it will be necessary to connect the input to both the peripheral pin and also a free GPIO to be able to read its state.
A number of peripherals can however be connected to the XBAR - see this video for details of the XBAR: https://youtu.be/zNWIG-O7ZW0 so there are still some indirect methods of reading the state of various peripheral inputs. One possibility is to internally connect the peripheral input to an ACMP input so that the output of a comparator can signal whether it is low or high at that point in time (beware however that the ACMP may not follow fast signals). In an emergency it may be possible to connect such a peripheral input internally to the FLEXIO block and configure that to allow its logical state to be read.
Note too that the QTIMER inputs don't need to come directly from their pins but instead can be connected via the XBAR to come from other peripheral outputs. That means that a comparator input pin can be used as QTIMER input (passing through a comparator) and thus its state read from the input peripheral too.
These techniques may be a bit fiddly but may allow a certain case to be realised in n emergency. It is a shame that the i.MX RT is not a bit more like the Kinetis parts with respect to their GPIO since these allow a peripheral function to be used in parallel with the GPIO and so also port DMA and port interrupts are possible on the peripheral inputs. Apart from tricks with the XAR I didn't find a method to do this so I would also be happy if someone can correct me and show that it is possible somehow on the i.MX RT parts.
Regards
Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements
For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html