Is it possible to create a custom product list by specifying product ids?

For example, if I want to display a product list of two products,

Can I do something like `website.com/category.php?id_product=1&id_product=2` ??

Obviously the above doesn't work, but I am convinced there is an easy way to achieve this.