I just got my first Raspberry Pi and I was wondering how I can use an iMac as a display for NOOBS.

I tried connecting an HDMI cable to the Raspberry Pi and connecting the other side to a Mini Display Port Adapter (4k) connected to the iMac's thunderbolt slot but the computer doesn't seem to get the input.