I have the bitcoin core already i want to play around the open source code.
You also could use online IDE such as
https://www.gitpod.io/.
I didn't create any input window where i can enter my password
Please read this guide from Apple website.
When a password is required in the Terminal window, you see a key prompt and the cursor changes. Characters aren’t displayed as you type, to keep your password secure. Even though no characters appear as you type and the cursor doesn’t move, enter your password, then press Return.