Do Skew + perspective transform on a rectangle and then check if a mouse cursor is on it

This is exactly what I want to achieve.

I’m taking a stab at making the same coverflow that you’re seeing in the picture, with actual album art images (and not rectangles).