Answer
I say, with Allah's guidance: It is permissible to look at the Kaaba during prayer as long as it does not prevent concentration, in which case it is contrary to what is preferable. If looking at it enhances concentration, it is recommended. And Allah knows best.