f7 is always a tender square and many attacks start by giving up material on it, usually when there is a bishop on the a2-g8 diagonal.
You should always look for checks followed by captures first. Nxf7 is the first capture I would look at because it is close to the enemy King. After Kxf7, the Queen can check on h5 because the black knight will be pinned by the exposed white rook so it is probably the first line I would look at and I would play it immediately in Puzzle Rush.
I must admit, I can't see the win myself with a dead white squared bishop but there must be a computer tactic there. I actually find it very difficult to 'see the whole board' with 3D pieces.
This has happened a lot since I started playing a whole 7-8 games
However, after reviewing my games this move always is recommended and I do not understand why I would give up my Knight for a Pawn? Is this because I should take the material if it weakens the Kings Defense? I know IF my opponent was not paying attention I could get his queen but I see this as the King takes my Knight and scurries back to safety while I traded a developed Knight for a Pawn? Thoughts?