It comes from the image of someone craning their neck like a rubber band, looking at something with intense curiosity.
Here are some examples of how to use "rubberneck" in a sentence:
* "Everyone was rubbernecking at the accident scene, slowing down traffic."
* "I couldn't help but rubberneck as the celebrity walked by."
* "The tourists rubbernecked at the ancient ruins, taking photos of everything."
The word "rubberneck" can also be used as a noun, meaning someone who stares curiously at something.
For example:
* "The rubbernecks slowed down traffic as they tried to get a better look at the accident."
The idiom "rubberneck" often implies that the person is being nosy or intrusive, rather than simply curious.